package com.ruibang.glass.produce.controller.system;

import com.ruibang.glass.produce.domain.req.Hot2StatisticalReportReq;
import com.ruibang.glass.produce.service.Cold1StatisticalReportService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-27  18:38
 * @Description: TODO：冷端1生产统计报表控制器
 * @Version: 1.0
 */

@Api(tags = "冷端1生产统计报表控制器")
@RestController
@RequestMapping("/api/glass/produce/cold1Statistical")
public class Cold1StatisticalReportController {

    @Autowired
    private Cold1StatisticalReportService cold1StatisticalReportService;


    @PostMapping("/getByDate")
    @ApiOperation(value = "根据日期获取冷端报表数据", notes = "根据日期获取冷端报表数据")
    public ResultBody getByDate(@RequestBody Hot2StatisticalReportReq hot2StatisticalReportReq) {
        return ResultBody.success(cold1StatisticalReportService.getByDate(hot2StatisticalReportReq));
    }
}
